﻿#include "wizard.h"
#include "ui_wizard.h"

Wizard::Wizard(QWidget *parent)
    : QWizard(parent)
    , ui(new Ui::Wizard)
{
    ui->setupUi(this);
}

Wizard::~Wizard()
{
    delete ui;
}

//完成时我们可以重写QWidzard的done函数，将页面设置的项目名称和路径传递给ProTree类
void Wizard::done(int result)
{
    if(result == QDialog::Rejected)
    {
        return QWizard::done(result);
    }

    QString name,path;
    ui->wizardPage1->GetProSettings(name,path);

    //发送信号
    emit sigProSettings(name,path);

    QWizard::done(result);
}
